package com.offcn.sellergoods.feign;

import com.offcn.entity.Result;
import com.offcn.sellergoods.pojo.Item;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author ld
 * @date 2021/9/14 15:09
 */
@FeignClient(name = "DYM-SELLERGOODS")
@RequestMapping("/item")
public interface SkuFeign {

    @GetMapping("/status/{status}")
    Result<List<Item>> findByStatus(@PathVariable String status);
}
